package com.eorchis.module.reply.ui.commond;

import java.io.Serializable;

import com.eorchis.core.basedao.entity.IBaseEntity;
import com.eorchis.core.ui.commond.ICommond;
import com.eorchis.module.newsuserlink.domain.NewsUserLink;
import com.eorchis.module.reply.domain.Reply;

import org.hibernate.validator.constraints.NotBlank;
import com.eorchis.core.ui.commond.ICommonField;
import java.util.Date;


/**
 * Title: ReplyValidCommond<br>
 * Description: 消息回复表ValidCommond<br>
 * Company: GoldGov<br>
 * Copyright @ 2012 GoldGov .All rights reserved.<br>
 * @author RongSL
 * @createDate 2016-05-06
 * @version $Revision$
 */
public class ReplyValidCommond implements ICommond,ICommonField {
	
	private Reply reply;
	
	public ReplyValidCommond(){
		reply = new Reply();
	}
	
	public ReplyValidCommond(Reply reply){
		this.reply = reply;
	}

	public Serializable getEntityID() {
		return reply.getReplyId();
	}

	@Override
	public IBaseEntity toEntity() {
		return reply;
	}

	/**
	 * 获取消息回复ID
	 */	
	@NotBlank
	public String getReplyId() {
		return reply.getReplyId();
	}
	/**
	 * 设置消息回复ID
	 */		
	public void setReplyId(String replyId) {
		reply.setReplyId(replyId);
	}
	/**
	 * 获取消息回复内容
	 */	
	public String getReplyValue() {
		return reply.getReplyValue();
	}
	/**
	 * 设置消息回复内容
	 */		
	public void setReplyValue(String replyValue) {
		reply.setReplyValue(replyValue);
	}
	/**
	 * 获取消息管理用户ID
	 */	
	public NewsUserLink getNewsUserLink() {
		return reply.getNewsUserLink();
	}
	/**
	 * 设置消息管理用户ID
	 */		
	public void setNewsUserLink(NewsUserLink newsUserLink) {
		reply.setNewsUserLink(newsUserLink);
	}
	
	public Date getCreateDate() {
		return reply.getCreateDate();
	}

	public void setCreateDate(Date createDate) {
		reply.setCreateDate(createDate);
	}

	@Override
	public Integer getActiveState() {
		return reply.getActiveState();
	}

	@Override
	public void setActiveState(Integer activeState) {
		reply.setActiveState(activeState);
	}	
	
}
